<?php
/**
 * 
 * @desc 视图类 * 
 * @author keluo <pycorvn@yeah.net>
 * @since 2011-5-23 23:11:08 * @link http://www.scabish.cn/framework
 */
class SCView {
	private $_bufferData = '';
	
	public function __construct() {
		
	}
	public function load($view = '') {		$view = trim($view, '/');		$view_path = $view ? SC_VIEW_PATH.'/'.$view.'.php' : SC_VIEW_PATH.'/'.SCRequest::getControllerName().'/'.SCRequest::getActionName().'.php';		if(file_exists($view_path) && is_file($view_path)) {			return $view_path;		} else {			trigger_error('Cannot find template: "'.$view_path.'"', E_USER_ERROR);		}	}	
}